import { Http } from "../myHttp.jsx"
// 获取需求管理的所有数据
const getConsult = () => { return Http('/consult/getConsult', 'get').then((res) => { return res }) }
// 搜索
const searchConsult = (params) => { return Http('/consult/search', 'get', params).then((res) => { return res }) }
// 发布
const changeConsult = (params) => { return Http('/consult/change', 'get', params).then((res) => { return res }) }
// 删除
const deleteConsult = (params) => { return Http('/consult/delete', 'get', params).then((res) => { return res }) }

// 添加
const addConsult = (data) => { return Http('/consult/add', 'post', data).then((res) => { return res }) }

// 获取当前条
const getOne = (params) => { return Http('/consult/getOne', 'get', params).then((res) => { return res }) }
// 编辑
const editConsult = (data) => { return Http('/consult/edit', 'post', data).then((res) => { return res }) }

export {
    getConsult,
    searchConsult,
    changeConsult,
    deleteConsult,
    addConsult,
    getOne,
    editConsult
}